#!/usr/bin/env python
# coding: utf-8

class Result:
    @staticmethod
    def get_error_string(result):
        ResultValue = {
                            0:  "API call success", 
                            -1: "ID already exists",
                            -2: "Required parameter is missed",
                            -3: "Email already exists",
                            -4: "User is not exist in the database",
                            -5: "Undefined action", 
                            -6: "Same user join",
                            -7: "Unjoined user leave",
                            -8: "Not enough deposit", 
                            -9: "Already joined deposit purchase",
                            -10: "Non existing group purchase item", 
                            -11: "Permission deny"
                            }
        
        return ResultValue[result]